package 设计模式.适配器模式.对象适配器模式;

public class Voltage220VTo5VAdapter implements Voltage5vInterface {

    private Voltage220V v220;

    Voltage220VTo5VAdapter(Voltage220V v){
        this.v220=v;
    }
    @Override
    public double output() {
        double v = v220.output220V()/44;
        System.out.println("输出"+v+"电压...");
        return v;
    }
}
